﻿using System;

namespace CalendarSubscriptionApp
{
	/// <summary>
	/// Interaction logic for SelectCasServerWindow.xaml
	/// </summary>
	public partial class SelectCasServerDialog
	{
		public SelectCasServerDialog()
		{
		}

		public SelectCasServerDialog(SelectCasServerViewModel viewModel)
		{
			if (viewModel == null) throw new ArgumentNullException("viewModel");
			DataContext = viewModel;
			InitializeComponent();
		}

		private void SaveButtonClick(object sender, System.Windows.RoutedEventArgs e)
		{
			DialogResult = true;
		}

		private void CancelButtonClick(object sender, System.Windows.RoutedEventArgs e)
		{
			DialogResult = false;
		}
	}
}
